package com.qcby.entity;

import java.sql.Timestamp;

public class QuestionAnswerEntity {
    private Integer id; //id
    private String senderSid; //发送者Sid
    private String receiverSid; //接收者Sid
    private String messageContent; //消息内容
    private Timestamp sendTime; //发送时间
    private Integer messageStatus; //消息状态 0表示已读，1表示未读

    public QuestionAnswerEntity() {
    }


    public QuestionAnswerEntity(String senderSid, String receiverSid, String messageContent, Integer messageStatus) {
        this.senderSid = senderSid;
        this.receiverSid = receiverSid;
        this.messageContent = messageContent;
        this.messageStatus = messageStatus;
    }
    public QuestionAnswerEntity(String senderSid, String receiverSid, Integer messageStatus) {
        this.senderSid = senderSid;
        this.receiverSid = receiverSid;
        this.messageStatus = messageStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSenderSid() {
        return senderSid;
    }

    public void setSenderSid(String senderSid) {
        this.senderSid = senderSid;
    }

    public String getReceiverSid() {
        return receiverSid;
    }

    public void setReceiverSid(String receiverSid) {
        this.receiverSid = receiverSid;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getMessageStatus() {
        return messageStatus;
    }

    public void setMessageStatus(Integer messageStatus) {
        this.messageStatus = messageStatus;
    }

    @Override
    public String toString() {
        return "QuestionAnswerEntity{" +
                "id=" + id +
                ", senderSid='" + senderSid + '\'' +
                ", receiverSid='" + receiverSid + '\'' +
                ", messageContent='" + messageContent + '\'' +
                ", sendTime=" + sendTime + '\'' +
                ", messageStatus=" + messageStatus +
                '}';
    }
}
